package 代码记录.Bit48天集训;
import java.util.Scanner;

/**
 * 1.字符串反转
 * 2.公共子串计算(和昨天的题大致相同(leetcode1143_最长公共子序列))
 * @author zx
 * @create 2022-05-17 8:26
 */
public class day_20 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String res = "";
        for(int i = str.length() - 1;i >= 0;i--){
            String t = "" + str.charAt(i);
            res += t;
        }
        System.out.println(res);
    }
}
